package com.yy.m3u8tool.parser.ffmpeg;

public class FfmpegM3u8Jni {
  //引入ffmepg库
  static {
    System.loadLibrary("ffmpeg");
    System.loadLibrary("ffmpeg-cmd");
  }

  //native执行FFmpeg命令
  public static native int exec(int cmdLen, String[] cmd);

  //获取命令执行进度,已转换的帧数
  public static native int getProgress();

  //获取转码速率
  public static native double getSpeed();

  //获取视频信息
  public static native String retrieveInfo(String path);
}
